package br.net.woodstock.tickettoride.api.core.utils;

import java.util.Map;

import br.net.woodstock.rockframework.persistence.orm.QueryMetadata;
import br.net.woodstock.rockframework.persistence.orm.impl.QueryMetadataImpl;

public abstract class RepositoryHelper {

	private RepositoryHelper() {
		//
	}

	public static QueryMetadata toQueryMetadata(final String sql) {
		return RepositoryHelper.toQueryMetadata(sql, null, null);
	}

	public static QueryMetadata toQueryMetadata(final String sql, final Map<String, Object> parameters) {
		return RepositoryHelper.toQueryMetadata(sql, parameters, null);
	}

	public static QueryMetadata toQueryMetadata(final String sql, final Map<String, Object> parameters, final Map<String, Object> options) {
		return new QueryMetadataImpl(sql, parameters, options);
	}

}
